{*系统消息列表页（管理员）*}
{include file="../header.html" title="系统消息列表"}

	<div id="main">
		<div id="main_title">您当前处于 
			<span class="weightFont">书籍管理</span> >> 
			<span class="softFont">系统消息</span>
		</div>
		<div id="main_body">
			<div><button class="addItemBtn">添加系统消息</button></div>
			{if $msgList}
			<center>
				<form id="listForm">
					<table id="msgList" cellpadding="5" cellspacing="0">
						<tr>
							<th>消息标题</th>
							<th>发布日期</th>
							<th>显示状态</th>
							<th class="wider">操作</th>
						</tr>
						{foreach $msgList as $msg}
						<tr>
							<td>
								<a href="{$site_url}admin/system_msg_detail.php?id={$msg['id']}">
									{$msg['title']}
								</a>
							</td>
							<td>{$msg['pubtime']|date_format:"%Y-%m-%d"}</td>
							<td>
								{if $msg['is_show']}显示
								{else}不显示
								{/if}
							</td>
							<td>
								<a href="{$site_url}admin/system_msg_detail.php?id={$msg['id']}" class="editBtn">
									编辑
								</a>
							</td>
						</tr>
						{/foreach}
					</table>
				</form>
				<!--翻页条-->
				{if $show_pageBox}
				<div class="pageDiv">{$pageBox}</div>
				{/if}
			</center>
			{else}
			<div class="noContent">暂时没有系统消息</div>
			{/if}

			<!--添加消息-->
			<div class="popBox" style="">
				<center>
				<form>
					<table cellpaddin="0" cellspacing="10">
						<thead class="thead">
							<td colspan="2">添加系统消息</td>
						</thead>
						<tr>
							<th><label for="title">标题:</label></th>
							<td>
								<input type="text" name="title" id="title" />
							</td>
						</tr>
						<tr>
							<th><label for="content">内容:</label></th>
							<td>
								<textarea id="content"></textarea>
							</td>
						</tr>
						<tr>
							<th><label for="isShow">是否发布:</label></th>
							<td>
								<select id="isShow">
									<option value="1">发布</option>
									<option value="0">不发布</option>
								</select>
							</td>
						</tr>
					</table>
				</form>
				<div>
					<span class="submitBtn">提交</span>
					<span class="cancelBtn">取消</span>
				</div>
				</center>
			</div>
		</div>
	</div>

{include file="../footer.html"}